/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    overflow: hidden;
    position: relative;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#background-container {
    width: 100%;
    height: 100%;
}

#background-canvas {
    width: 100%;
    height: 100%;
}

.cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.login-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 14px;
}

/* 确保登录容器在背景之上 */
.login-container {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* 响应式设计 - 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .login-container {
        max-width: 350px;
        padding: 30px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
    
    .form-group input {
        font-size: 15px;
    }
    
    .btn {
        font-size: 15px;
    }
}

/* 响应式设计 - 手机设备 (小于768px) */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 20px;
    }
    
    .login-container {
        max-width: 100%;
        padding: 25px;
        margin: 20px 0;
    }
    
    .login-header {
        margin-bottom: 20px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .error-message {
        padding: 8px;
        font-size: 14px;
    }
    
    .footer {
        font-size: 12px;
    }
}

/* 响应式设计 - 小屏幕手机 (小于480px) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-container {
        padding: 20px;
        border-radius: 6px;
    }
    
    .login-header h2 {
        font-size: 18px;
    }
    
    .form-group input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .btn {
        padding: 8px;
        font-size: 14px;
    }
}